#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
using namespace std;

#include "reverse_iterator.h"

void test_vector_reverse_iterator()
{
	cout << "test_vector_reverse_iterator(): ";
	bit::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	auto rit = v.rbegin();
	while (rit != v.rend())
	{
		cout << *rit << " ";
		rit++;
	}
	cout << endl;
}

void test_list_reverse_iterator()
{
	cout << "test_list_reverse_iterator(): ";
	bit::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(5);
	auto rit = lt.rbegin();
	while (rit != lt.rend())
	{
		cout << *rit << " ";
		rit++;
	}
	cout << endl;
}

int main()
{
	test_vector_reverse_iterator();
	test_list_reverse_iterator();
	return 0;
}